Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the unit test failure of kafka configuring user agent #32636

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

yiliuTo
Copy link
Member

@yiliuTo yiliuTo commented Dec 19, 2022

This pr is to fix the unit test failure of kafka configuring user agent.
During the refactoring process of Kafka password-less connection support in #31182, we moved some methods from a util class to a superclass, and also modified them from class methods to instance methods since they are only used within that class.
However, the synchronized method configureKafkaUserAgent should be a class method to make it idempotent and thread-safe across calling from all subclass instances, which should not be modified as non-static.

@ghost ghost added the azure-spring All azure-spring related issues label Dec 19, 2022
@yiliuTo yiliuTo marked this pull request as ready for review December 20, 2022 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants